﻿using Joy.Erp.BasicArchives.Core;
using Joy.Erp.BasicArchives.Core.UniqueCodes;
using System;
using Volo.Abp.Domain.Entities;
using Volo.Abp.MultiTenancy;

namespace Joy.Erp.BasicArchives.ItemMasters
{
    /// <summary>
    /// 计量单位组
    /// </summary>
    public class UnitGroup : MultiArchiveAggregateRoot<AuxiliaryUnit>, IMultiTenant, IUniqueCode, IHasConcurrencyStamp
    {
        /// <summary>
        /// 所属租户
        /// </summary>
        public Guid? TenantId { get; set; }

        /// <summary>
        /// 计量组名称
        /// </summary>
        public string GroupName { get; set; }

        /// <summary>
        /// 主计量
        /// </summary>
        public Guid MainUnitId { get; set; }

        /// <summary>
        /// 主计量
        /// </summary>
        public Unit MainUnit { get; set; }
    }
}
